package com.huluobo.a2303mdmdemo.demo

import androidx.compose.foundation.clickable
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.navigation.NavHostController
import com.blankj.utilcode.util.SPUtils
import com.google.gson.Gson

/**
 *  Created by LC on 2025/8/16.
 */
@Composable
fun SecPage(navHostController: NavHostController) {
    val user = Gson().fromJson(SPUtils.getInstance().getString("user"), User::class.java)
    Text(text = "第二页面+$user", modifier = Modifier.clickable {
        //navigate 跳转
//        navHostController.navigate(RoutePath.FIRST)

        //popBackStack返回
        navHostController.popBackStack()
    })
}